package com.fcscs.cservice.ws.client.bookingservice;

import org.apache.log4j.Logger;
import org.springframework.ws.client.core.support.WebServiceGatewaySupport;

import com.fcscs.cservice.ws.schema.bookingservice.UpdateBookingRequest;
import com.fcscs.cservice.ws.schema.bookingservice.UpdateBookingResponse;

public class UpdateBookingClient extends WebServiceGatewaySupport {

	private static final Logger LOG = Logger.getLogger(UpdateBookingClient.class);
	
	public UpdateBookingResponse getUpdateBooking(UpdateBookingRequest req) {
		UpdateBookingResponse resp = (UpdateBookingResponse) getWebServiceTemplate().marshalSendAndReceive(req);
		if(resp == null){
			LOG.info("----------resv is null");
		}else{
			LOG.info("----------resv " + resp.getBooking());
		}
		return resp;
	}
	
}
